package org.mybatis.jpetstore.test.socket;

public class SocketUtil {
	
	public static byte[] getSubByte(byte[] byteArray,int startIndex,int endIndex){
		byte[] newArray = new byte[endIndex-startIndex +1];
		for(int index = 0;index<(endIndex - startIndex);index++){
			newArray[index] = byteArray[startIndex+index];
		}
		return newArray;
	}
	
	public static int byte2int(byte[] byteArray){
		return 1;
	}

}
